package util;

import hibernate.mappings.MsNode;

import java.util.List;

import node.dao.CommonDao;

public class CacheUtil {
private static List<MsNode> nodeList;


public void freshNodeList(){
	nodeList=new CommonDao().getListForHibernate(
			"from MsNode", null, null, 0, 0);
}

public List<MsNode> getNodeList() {
	if(nodeList==null){
		freshNodeList();
	}
	return nodeList;
}

}
